package com.tobestronger.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tobestronger.common.utils.PageUtils;
import com.tobestronger.gulimall.product.entity.CategoryEntity;
import com.tobestronger.gulimall.product.model.CategoryEntityWithChildren;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author MoMing
 * @email wangnimvp@163.com
 * @date 2023-12-31 20:39:04
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntityWithChildren> listWithTree();

    void deleteMenusByCatIds(Long[] catIds);

    /**
     * 查询分类的全路径
     * @param catelogId
     * @return
     */
    Long[] findCatelogPath(Long catelogId);
}

